cmake_minimum_required(VERSION 3.16)

project(MyChess VERSION 0.1 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Qt6 REQUIRED COMPONENTS Quick)

qt_standard_project_setup(REQUIRES 6.5)

qt_add_executable(appMyChess
    main.cpp
)

qt_add_qml_module(appMyChess
    URI MyChess
    VERSION 1.0
    QML_FILES
        Main.qml
        QML_FILES Board.qml
        RESOURCES res.qrc
        RESOURCES res.qrc
)

target_link_libraries(appMyChess
    PRIVATE Qt6::Quick
)
